<?php
namespace app\Admin\model;

use think\Db;
use think\Model;

class Service extends Model
{
	public function get_Service()
	{
		return Db::name('service')->select();
	}

	public function get_ServiceOne($where='')
	{
		return Db::name('service')->where($where)->find();
	}

	public function Add_Service($data)
	{
		return Db::table('win_service')->insert($data);
	}

	public function Edit_Service($data,$id)
	{
		return Db::table('win_service')->where(array('id'=>$id))->update($data);
	}

	public function Del_Service($where='')
	{
		return Db::table('service')->where(array('id'=>$id))->delete();
	}

}